<template>
    <transition name="toast-transition">
        <div v-show="show" class="toast">
            <div class="toast-content">{{ content }}</div>
        </div>
    </transition>
</template>
<style scoped>
.toast {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 10;
    pointer-events: none;
}
.toast-content {
    padding: 10px 30px;
    border-radius: 10px;
    background-color: rgba(0, 0, 0, 0.8);
    font-size: 30px;
    color: #fff;
    line-height: 60px;
}
.toast-transition-enter-active,
.toast-transition-leave-active {
    transition: opacity 0.5s;
}
.toast-transition-leave,
.toast-transition-enter-to {
    opacity: 1;
}
.toast-transition-enter,
.toast-transition-leave-to {
    opacity: 0;
}
</style>